<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
Route::group(function () {
    Route::post('login', 'admin/AdminUser/login');
})->middleware(\app\http\middleware\AllowOrigin::class);

Route::group(function () {

    // 后台菜单管理
    Route::post('menuList', 'admin/Menu/menuList');
    Route::post('addMenu', 'admin/Menu/addMenu');
    Route::post('editMenu', 'admin/Menu/editMenu');


})->middleware(\app\http\middleware\AllowOrigin::class)
    ->middleware(\app\http\middleware\AdminCheckToken::class)
    ->middleware(\app\http\middleware\AuthVerify::class);